package com.itheima.HomeWork;

public class RandomNumHandlerDemo {
    public static void main(String[] args) {
        useRandomNumHandler(() -> "Hello Word");
    }

    public static void useRandomNumHandler(RandomNumHandler ran) {
        System.out.println(ran.getNumber());

    }
}

interface RandomNumHandler {
    String getNumber();
}